package com.dingtao.common.bean;

import com.alibaba.fastjson.annotation.JSONField;

import java.util.List;

import lombok.Data;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@Data
public class HomeBannerCate {

    @JSONField(name = "banner")
    private List<BannerDTO> banner;
    @JSONField(name = "category")
    private List<CategoryDTO> category;

    @NoArgsConstructor
    @Data
    public static class BannerDTO {
        @JSONField(name = "id")
        private int id;
        @JSONField(name = "shopCode")
        private Object shopCode;
        @JSONField(name = "title")
        private String title;
        @JSONField(name = "action")
        private Object action;
        @JSONField(name = "actionPath")
        private String actionPath;
        @JSONField(name = "htmlUrl")
        private Object htmlUrl;
        @JSONField(name = "shareUrl")
        private Object shareUrl;
        @JSONField(name = "shareDesc")
        private Object shareDesc;
        @JSONField(name = "imageUrl")
        private String imageUrl;
        @JSONField(name = "isDelete")
        private Object isDelete;
        @JSONField(name = "category")
        private Object category;
    }

    @NoArgsConstructor
    @Data
    public static class CategoryDTO {
        @JSONField(name = "id")
        private int id;
        @JSONField(name = "caption")
        private String caption;
        @JSONField(name = "remarks")
        private String remarks;
        @JSONField(name = "orderNum")
        private Object orderNum;
        @JSONField(name = "status")
        private Object status;
        @JSONField(name = "showIndex")
        private Object showIndex;
        @JSONField(name = "icon")
        private String icon;
        @JSONField(name = "owner")
        private Object owner;
        @JSONField(name = "showColor")
        private String showColor;
        @JSONField(name = "addBy")
        private Object addBy;
        @JSONField(name = "addTime")
        private Object addTime;
        @JSONField(name = "updateBy")
        private Object updateBy;
        @JSONField(name = "updateTime")
        private Object updateTime;
        @JSONField(name = "parentName")
        private Object parentName;
        @JSONField(name = "isChoosed")
        private boolean isChoosed = false;
    }
}
